namespace xbuffer
{
    public static class XVector3Buffer
    {
        public static XVector3 deserialize(byte[] buffer, ref int offset)
        {
			// x
			XNumber _x = XNumberBuffer.deserialize(buffer, ref offset);
			// y
			XNumber _y = XNumberBuffer.deserialize(buffer, ref offset);
			// z
			XNumber _z = XNumberBuffer.deserialize(buffer, ref offset);

			// value
			return new XVector3() {
				x = _x,
				y = _y,
				z = _z,
            };
        }

        public static void serialize(XVector3 value, byte[] buffer, ref int offset)
        {
			// x
			XNumberBuffer.serialize(value.x, buffer, ref offset);
			// y
			XNumberBuffer.serialize(value.y, buffer, ref offset);
			// z
			XNumberBuffer.serialize(value.z, buffer, ref offset);
        }
    }
}
